/* 整体布局 */
* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #e8edefad;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* 小组成员介绍 */
.group-container {
    border: 5px solid rgba(21, 21, 128, 0.318);
    border-radius: 20px;
    width: 1000px;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* 组员介绍卡片 */
.group-container .group-card {
    margin: 35px;
    background-color: #878c9776;
    /* 相对定位 */
    position: relative;
    border-radius: 20px;
    /* 溢出隐藏 */
    overflow: hidden;
    display: flex;
    /* 元素纵向排列 */
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* 卡片宽度、高度 */
    width: 26.3%;
    height: 290px;
    
}

.group-container .group-card .group-photo {
    /* width: 260px; */
    position: absolute;
    top: 0;
    /* 悬停时卡片缩小的起始大小 */
    width: 100%;
    height: 100%;
    border-radius: 0%;
    /* 缩小后头像多出来的部分裁去 */
    overflow: hidden;
    transition: 0.5s;
}

.group-container .group-card .group-photo img {
    /* 图片的大小 */
    width: 100%;
    height: 100%;
    /* 裁剪 */
    object-fit: cover; 
}

.group-container .group-card:hover .group-photo {
    /* 缩小后头像的大小位置 */
    top: 20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.group-container .group-card h1 {
    position: absolute;
    top: 118px;
    transition: 0.5s;
    color: #f16304;
}

.group-container .group-card h2 {
    margin-top: 165px;
    width: 80%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    
}

.group-container .group-card p {
    width: 90%;
    text-indent: 32px;
    font-size: 16px;
    margin-bottom: 8px;
    /* line-height: 30px; */
}

.group-container .group-card a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2.5px 12px;
}